package scr.org.example.biz;

import lombok.extern.slf4j.Slf4j;
import org.example.AccountApplication;
import org.example.component.SmsComponent;
import org.example.config.SmsConfig;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = AccountApplication.class)
@Slf4j
public class SmsText {

    @Autowired
    private SmsComponent smsComponent;
    @Autowired
    private SmsConfig smsConfig;
    @Test
    public void textSendSms(){
            smsComponent.send("17761381937",smsConfig.getTemplateId(),"666666");
    }

}
